package com.ruoyi.domain.DTO;

import com.ruoyi.domain.Course;
import com.ruoyi.domain.CourseVideo;

import java.security.Timestamp;
import java.util.List;

// 1. 首先创建VO对象封装连表结果（新建CourseWithVideoVO.java）
public class CourseWithVideoVO {
    // 课程表字段

    private Integer courseId;
    private Integer categoryId;
    private String courseName;
    private String courseDescription;
    private String difficultyLevel;
    private Integer duration;
    private Timestamp createdAt;
    private Timestamp updatedAt;
    private List<VideoVO> videos;
    // 视频表字段
    private Integer videoId;
    private String videoTitle;
    private String videoUrl;
    private Integer videoDuration;
    private String imgUrl;
    // 其他需要展示的字段...
    // getters/setters
    public List<VideoVO> getVideos() {
        return videos;
    }
    public void setVideos(List<VideoVO> videos) {
        this.videos = videos;
    }
    public Integer getCategoryId() {
        return categoryId;
    }
    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }
    public Integer getCourseId() {
        return courseId;
    }
    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }
    public String getCourseName() {
        return courseName;
    }
    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }
    public String getCourseDescription() {
        return courseDescription;
    }
    public void setCourseDescription(String courseDescription) {
        this.courseDescription = courseDescription;
    }
    public String getDifficultyLevel() {
        return difficultyLevel;
    }
    public void setDifficultyLevel(String difficultyLevel) {
        this.difficultyLevel = difficultyLevel;
    }
    public Integer getDuration() {
        return duration;
    }
    public void setDuration(Integer duration) {
        this.duration = duration;
    }
    public Timestamp getCreatedAt() {
        return createdAt;
    }
    public void setCreatedAt(Timestamp createdAt) {
        this.createdAt = createdAt;
    }
    public Timestamp getUpdatedAt() {
        return updatedAt;
    }
    public void setUpdatedAt(Timestamp updatedAt) {
        this.updatedAt = updatedAt;
    }
    public Integer getVideoId() {
        return videoId;
    }
    public void setVideoId(Integer videoId) {
        this.videoId = videoId;
    }
    public String getVideoTitle() {
        return videoTitle;
    }
    public void setVideoTitle(String videoTitle) {
        this.videoTitle= videoTitle;
    }
    public String getVideoUrl() {
        return videoUrl;
    }
    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }
    public Integer getVideoDuration() {
        return videoDuration;
    }
    public void setVideoDuration(Integer videoDuration) {
        this.videoDuration = videoDuration;
    }
    public String getImgUrl() {
        return imgUrl;
    }
    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }
    public CourseWithVideoVO() {
        // 默认构造函数
    }
    public CourseWithVideoVO(Course course, CourseVideo video) {
    }
}


